#ifndef _FMAIN_H_
#define _FMAIN_H_

#include <FBase.h>
#include <FUi.h>
#include <FApp.h>
#include <FGraphics.h>

using namespace Osp::Graphics;

class FMain :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener

{

// Construction
public:
	FMain(void);
	virtual ~FMain(void);
	bool Initialize(void);

// Implementation
protected:
	static const int IDC_BTN_PLAY_GAME = 101;
	static const int IDC_BTN_EXIT      = 102;
	Osp::Ui::Controls::Button *__pBtnPlayGame;
	Osp::Ui::Controls::Button *__pBtnExit;

public:
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void   OnActionPerformed(const Osp::Ui::Control& source, int actionId);

private :
  virtual result OnDraw(void);
  virtual result DrawView(void);
  virtual void   SetFormBackground();

private:
	Canvas*  __pCanvas;
};

#endif	//_FMAIN_H_
